home *** CD-ROM | disk | FTP | other *** search
/ CD BIT 75 / CD BIT 75.iso / Software / ooo / f_0020 / sbasic.jar / text / sbasic / common / 03010103.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-08-01  |  4.9 KB  |  47 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Print Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03010103"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:1.499cm;}
  8.         span.Tabelle1B{
  9.                 width:16.498cm;}
  10.         tr.Tabelle11{
  11.                 }
  12.         td.Tabelle1A1{
  13.                 }
  14.         p.P1{
  15.                 }
  16.         span.T1{
  17.                 font-weight:bold;}
  18.         span.fr1{
  19.                 }
  20.         </style></head><body>
  21.   
  22.   
  23.   <help:paragraphinfo state="E" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="print" xmlns:help="http://openoffice.org/2000/help">
  24.   <p class="Head1"><help:paragraphinfo state="U" number="1"/><help:key-word value="Print; statement" tag="kw66580_1"/><help:link Id="66580">Print Statement [Runtime]</help:link></p>
  25.   <p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Prints the specified strings or numeric expressions in a dialog.</p>
  26.   <help:paragraphinfo state="E"/></help:to-be-embedded>
  27.   <p class="Head2"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>Syntax:</p>
  28.   <p class="PropText"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>Print Expression1[{;|,} [Spc(Number As Integer);] [Tab(pos As Integer);] [Expression2[...]] </p>
  29.   <p class="Head2"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>Parameter:</p>
  30.   <p class="Paragraph"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Expression</span>: Any numeric or string expression to be printed. Multiple expressions can be separated by a semicolon. If separated by a comma, the expressions are indented to the next tab stop. The tab stops cannot be adjusted.</p>
  31.   <p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Number</span>: Number of spaces to be inserted by the <span class="T1">Spc</span> function.</p>
  32.   <p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Pos</span>: Spaces are inserted until the specified position.</p>
  33.   <p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>If a semicolon or comma appears after the last expression to be printed, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic stores the text in an internal buffer and continues program execution without printing. When another Print statement without a semicolon or comma at the end is encountered, all text to be printed is printed at once.</p>
  34.   <p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>Positive numeric expressions are printed with a leading space. Negative expressions are printed with a leading minus sign. If a certain range is exceeded for floating-point values, the respective numeric expression is printed in exponential notation.</p>
  35.   <p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>If the expression to be printed exceeds a certain length, the display will automatically wrap to the next line.</p>
  36.   <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  37.       <p class="TextInTable"><draw:image draw:name="Icon0" svg:desc="Note Icon" svg:pixelx="32" svg:pixely="32" svg:width="0.847cm" svg:height="0.847cm" xlink:href="65980" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  38.  
  39.      </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  40.       <p class="TextInTable"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>You can insert the Tab function, enclosed by semicolons, between arguments to indent the output to a specific position, or you can use the <span class="T1">Spc</span> function to insert a specified number of spaces.</p>
  41.      </span></th></tr></table>
  42.   <p class="Head2"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>Example:</p>
  43.   <p class="PropText"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>Sub ExamplePrint</p>
  44.   <p class="PropText"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>Print "ABC"</p>
  45.   <p class="PropText"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>Print "ABC","123"</p>
  46.   <p class="PropText"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>end Sub</p>
  47.  </body></html>